<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<!--　用户登录信息　-->
<div class="header" th:fragment="iframe_header">
    <span th:text="${pageTitle}"></span>
    <a th:if="${pageGoBack}" href="javascript:history.go(-1)">返回</a>
    <ul>
        <li class="message"></li>
        <li class="userInfo"><shiro:principal property="name"/></li>
        <li class="more">
            <ul>
                <li class="logout" th:href="@{/logout}">注销</li>
            </ul>
        </li>
    </ul>
<script type="text/javascript" src="/static/lib/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/static/lib/jquery.nicescroll.min.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $('.header .more').hover(function() {
            $(this).children('ul').show();
        }, function() {
            $(this).children('ul').hide();
        });
        $('.logout').click(function(event){
            top.location.href=$(this).attr("href");
        })
    });
</script>
</div>
</body>
</html>